home *** CD-ROM | disk | FTP | other *** search
-
- small_code equ 4
- large_code equ 6
-
- model equ small_code ; set this for which memory model
-
- .MODEL SMALL
-
- .DATA
- _windowfunc dd ? ; far void function pointer must
- public _windowfunc ; be initialized to WinFuncPtr
- ; before calling _fastvesa()
- .CODE
- public _fastvesa
- _fastvesa proc near
- push bp
- mov bp,sp
-
- push ax ; save regs.
- push dx
- push bx
-
- mov bx,[bp+model] ; get window number
- mov dx,[bp+model+2] ; get window position
- call _windowfunc
-
- pop bx
- pop dx
- pop ax
-
- mov sp,bp
- pop bp
- ret
- _fastvesa endp
-
-
- end
-